import {ElMessage} from 'element-plus'
import {MessageParamsWithType} from "element-plus/es/components/message/src/message";

export const showMessage=(message:string, type:string = 'info', duration:number = 3000) =>{
    ElMessage(<MessageParamsWithType>{
        message,
        type,
        duration,
    });
}
